import xadmin
from .models import Comment


class CommentAdmin(object):
    list_display = ['name', 'email', 'url', 'comment', 'article', 'add_time']
    search_fields = ['name', 'email', 'url', 'comment', 'article']
    list_filter = ['name', 'email', 'url', 'comment', 'article', 'add_time']

xadmin.site.register(Comment, CommentAdmin)

